package com.jinshan.gaietymall.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * ProjectName:    gaietymall
 * Package:        com.jinshan.gaietymall.config
 * ClassName:      MybatisPlusConfig
 * Author:     liujinshan
 * Description:
 * Date:    2020/4/15 13:00
 * Version:    1.0
 */
@Configuration
@EnableTransactionManagement
public class MybatisPlusConfig {
    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
